package swu.edu.cn.javaee.entity;

import org.apache.ibatis.type.Alias;

@Alias("merchant")
public class Merchant {
    private String cid;
    private User user;
    private String userUid;
    private String registerName;
    private String licenseNumber;
    private String address;
    private String telephone;
    private String intro;
    private String businessType;
    private String productClassify;
    private String premises;

    public Merchant() {
        this.cid="";
        this.user=null;
        this.userUid="";
        this.registerName="";
        this.licenseNumber="";
        this.telephone="";
        this.address="";
        this.intro="";
        this.businessType="";
        this.productClassify="";
        this.premises="";
    }


    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getUserUid() {
        return userUid;
    }

    public void setUserUid(String userUid) {
        this.userUid = userUid;
    }

    public String getRegisterName() {
        return registerName;
    }

    public void setRegisterName(String registerName) {
        this.registerName = registerName;
    }

    public String getLicenseNumber() {
        return licenseNumber;
    }

    public void setLicenseNumber(String licenseNumber) {
        this.licenseNumber = licenseNumber;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getProductClassify() {
        return productClassify;
    }

    public void setProductClassify(String productClassify) {
        this.productClassify = productClassify;
    }

    public String getPremises() {
        return premises;
    }

    public void setPremises(String premises) {
        this.premises = premises;
    }

    @Override
    public String toString() {
        return "Merchant{" +
                "cid='" + cid + '\'' +
                ", user=" + user +
                ", user_uid='" + userUid + '\'' +
                ", register_name='" + registerName + '\'' +
                ", license_number='" + licenseNumber + '\'' +
                ", address='" + address + '\'' +
                ", telephone='" + telephone + '\'' +
                ", intro='" + intro + '\'' +
                ", business_type='" + businessType + '\'' +
                ", product_classify='" + productClassify + '\'' +
                ", premises='" + premises + '\'' +
                '}';
    }
}
